<!DOCTYPE html>
<html lang="en-us">
  <head>
    <title>org mode - org-page</title>
    <meta charset="utf-8" />
    <meta name="author" content="梁子" />
    <link rel="stylesheet" href="/media/css/main.css" type="text/css">
  </head>
  <body class="container">
    <div>
      <header class="masthead">
        <h1 class="masthead-title"><a href="/">org-page</a></h1>
        <p>static site generator</p>
        <ul>
          <li><a href="/blog/">Blog</a></li>
          <li><a href="/notes/">Notes</a></li>
          <li><a href="/tags/">Tags</a></li>
          <li><a href="/about/">About</a></li>
          <li><a href="your github link">GitHub</a></li>
        </ul>
        <form method="get" id="searchform" action="http://www.google.com/search">
          <input type="text" class="field" name="q" id="s" placeholder="Search">
          <input type="hidden" name="q" value="site:18842378119.gitee.io/imissliangzi.gitee.io">
        </form>
      </header>
    </div>

<div>
<div class="post">
<h1>org mode</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org7d48f1b">1. INPROGRESS working with source code 在笔记里插入源码<code>[%]</code></a>
<ul>
<li><a href="#org52b078d">1.1. <span class="todo TODO">TODO</span> using header arguments</a></li>
<li><a href="#org7fffbfa">1.2. <span class="todo TODO">TODO</span> evaluating code blocks</a></li>
<li><a href="#org46553a3">1.3. <span class="todo TODO">TODO</span> results of evaluation</a></li>
<li><a href="#org37b32b8">1.4. <span class="todo TODO">TODO</span> exporting code blocks</a></li>
<li><a href="#org83888a7">1.5. <span class="todo TODO">TODO</span> extracting source code</a></li>
</ul>
</li>
<li><a href="#org97de4a5">2. <span class="done DONE">DONE</span> introduction: a welcome of org mode</a>
<ul>
<li><a href="#org05d33cb">2.1. 激活</a></li>
</ul>
</li>
<li><a href="#orge2e0166">3. <span class="done DONE">DONE</span> document structure 文档结构</a>
<ul>
<li><a href="#org0ae6d19">3.1. headlines</a></li>
<li><a href="#orgfdfb762">3.2. 在可见度上的遮盖与打开 visibility cycling</a></li>
<li><a href="#org4e89b11">3.3. 在headline之间的跳动</a></li>
<li><a href="#org5b7ecbd">3.4. 结构编辑 structure editing</a></li>
<li><a href="#org83f5204">3.5. sparse trees</a></li>
<li><a href="#orgdfd1cc3">3.6. plain list 简单的列表</a></li>
</ul>
</li>
<li><a href="#orgaad3b2b">4. <span class="done DONE">DONE</span> table 表格的使用</a>
<ul>
<li><a href="#org8782a19">4.1. 使用C-c | 形成一个新的表格</a></li>
<li><a href="#orgb84a536">4.2. cell基本变换</a></li>
<li><a href="#orge02e346">4.3. <span class="done DONE">DONE</span> 行与列的变化</a></li>
</ul>
</li>
<li><a href="#org4f014d4">5. <span class="done DONE">DONE</span> hyperlinks 超链接</a>
<ul>
<li><a href="#orga0ea36e">5.1. 内部链接</a></li>
<li><a href="#org0dbd712">5.2. 外部链接</a></li>
<li><a href="#org68d4b32">5.3. handling links, 处理链接</a></li>
</ul>
</li>
<li><a href="#org6596810">6. <span class="done DONE">DONE</span> todo iteems  待办项目</a>
<ul>
<li><a href="#org207fc8f">6.1. 有关todo的基本操作</a></li>
<li><a href="#org0e1cd30">6.2. <span class="done DONE">DONE</span> muti-state workflow  多态工作流</a></li>
<li><a href="#orgbbe6dd8">6.3. Progress Logging 进展记录</a>
<ul>
<li><a href="#org75b36fa">6.3.1. <span class="todo TODO">TODO</span> 阅读clocking working time</a></li>
<li><a href="#org96fb230">6.3.2. closing items 关闭项目</a></li>
<li><a href="#org1ac9eea">6.3.3. tracking todo state changes</a></li>
</ul>
</li>
<li><a href="#orga181409">6.4. Priorities 优先级</a></li>
<li><a href="#orgd3c07df">6.5. break tasks down into subtasks 将任务分解为子任务</a></li>
<li><a href="#org7bb0830">6.6. checkboxes 复选框</a></li>
</ul>
</li>
<li><a href="#org28a6768">7. <span class="done DONE">DONE</span> Tags 标签</a>
<ul>
<li><a href="#orgf8fce53">7.1. tag inheritance 标签层级</a></li>
<li><a href="#org2aaca23">7.2. 设置标签&#xa0;&#xa0;&#xa0;<span class="tag"><span class="test">test</span></span></a></li>
<li><a href="#org1e6f193">7.3. 标签组</a></li>
<li><a href="#org5f42bf9">7.4. 标签的搜索</a></li>
</ul>
</li>
<li><a href="#org4f943d4">8. <span class="done DONE">DONE</span> Properties</a></li>
<li><a href="#org793edec">9. <span class="done DONE">DONE</span> dates and times</a>
<ul>
<li><a href="#orge2fc446">9.1. timestamps 时间戳</a>
<ul>
<li><a href="#org6414515">9.1.1. C-c . 插入时间戳</a></li>
<li><a href="#orgc502916">9.1.2. C-c ! 插入非活动类型时间戳</a></li>
<li><a href="#org1811a44">9.1.3. S-方向键</a></li>
</ul>
</li>
<li><a href="#orga0fb509">9.2. deadline and scheduling 截止日期与时间表</a>
<ul>
<li><a href="#org5bc0199">9.2.1. C-c C-d</a></li>
<li><a href="#org593cdaf">9.2.2. C-c C-s</a></li>
</ul>
</li>
<li><a href="#org14e762e">9.3. clocking work time 记录在特定项目上消耗的时间</a></li>
</ul>
</li>
<li><a href="#org566ac47">10. INPROGRESS [#B] capture, refile, archive</a>
<ul>
<li><a href="#org90650e6">10.1. capture</a>
<ul>
<li><a href="#orge526af2">10.1.1. setting up capture 设置capture</a></li>
<li><a href="#org28aa945">10.1.2. using capture 使用capture</a></li>
<li><a href="#org80e4a66">10.1.3. <span class="done DONE">DONE</span> capture templates</a></li>
</ul>
</li>
<li><a href="#orgfcf50c8">10.2. refile and copy 文件重归档与复制</a></li>
</ul>
</li>
<li><a href="#org09d72cf">11. INPROGRESS [#A] agenda views</a>
<ul>
<li><a href="#org20a2b76">11.1. agenda files</a></li>
<li><a href="#org73d0bc0">11.2. The Agenda Dispatcher 日程调度分配器</a></li>
<li><a href="#org27364be">11.3. The Weekly /Daily  Agenda</a></li>
<li><a href="#org50536e7">11.4. the global todo list 全局todo列表</a></li>
<li><a href="#org0c0a1a1">11.5. Matching Tags and Properties 匹配标签和属性</a></li>
</ul>
</li>
<li><a href="#org202e842">12. <span class="done DONE">DONE</span> markup for rich contents</a>
<ul>
<li><a href="#org5d5545c">12.1. paragraphs 段落</a></li>
<li><a href="#orgb427ef4">12.2. Emphasis and Monospace 强调与等宽字体</a></li>
<li><a href="#org1c4d0ba">12.3. embedded latex</a></li>
<li><a href="#org0d8f8ab">12.4. literal examples 一些例子</a></li>
<li><a href="#org2509880">12.5. Images 插入图片的问题</a></li>
<li><a href="#orgc879588">12.6. creating footnotes 插入脚注</a></li>
</ul>
</li>
<li><a href="#orgb91d890">13. <span class="done DONE">DONE</span> exporting</a>
<ul>
<li><a href="#orgf048f44">13.1. 导出时需要的一些特殊信息</a></li>
<li><a href="#orgd171528">13.2. table of contents 内容目录</a></li>
<li><a href="#org626630d">13.3. include files 导入其他文件</a></li>
<li><a href="#orgc53f81e">13.4. comment lines 注释行</a></li>
<li><a href="#orga07a503">13.5. 正文开始:导出成不同格式的文件</a>
<ul>
<li><a href="#orgeaf9a44">13.5.1. ASCII UTF-8</a></li>
<li><a href="#org684ff68">13.5.2. HTML</a></li>
<li><a href="#orgf643ed7">13.5.3. latex export</a></li>
<li><a href="#org932eb86">13.5.4. iCalendar export</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#orgd212bde">14. <span class="done DONE">DONE</span> publishing</a></li>
<li><a href="#org9c0ddfa">15. <span class="todo TODO">TODO</span> miscellaneous</a></li>
</ul>
</div>
</div>
<p>
这篇笔记是我用org写的，在学习org的过程中进行的一个简单的记录。
这篇笔记里所有的内容都来自于<a href="https://orgmode.org/guide/">orgmode compact guide</a>.
</p>

<div id="outline-container-org7d48f1b" class="outline-2">
<h2 id="org7d48f1b"><span class="section-number-2">1.</span> INPROGRESS working with source code 在笔记里插入源码<code>[%]</code></h2>
<div class="outline-text-2" id="text-1">
<p>
org 在编辑源码,运行源码,tangling源码与导出源码上都有一些贡献.
一般来说,一个源码都可以表现成下面的格式:
</p>
<div class="org-src-container">
<pre class="src src-<language>" id="org6acfae1">&lt;body&gt;
</pre>
</div>

<p>
其中
</p>
<ul class="org-ul">
<li>‘&lt;name&gt;’ is a string used to uniquely name the code block,</li>
<li>‘&lt;language&gt;’ specifies the language of the code block, e.g., ‘emacs-lisp’, ‘shell’, ‘R’, ‘python’, etc.,</li>
<li>‘&lt;switches&gt;’ can be used to control export of the code block,</li>
<li>‘&lt;header arguments&gt;’ can be used to control many aspects of code block behavior as demonstrated below,</li>
<li>‘&lt;body&gt;’ contains the actual source code.</li>
</ul>

<p>
通过C-c '进行代码块的编辑，但是常常的一串呢？都需要输入吗？不是这样的。
从<a href="http://wenshanren.org/?p=327">此处</a>找到了一个自定义的解决方案,我觉得或许可以.
首先,把下面的函数放入init文件中.
</p>


<div class="org-src-container">
<pre class="src src-emacs-lisp">(<span style="color: #00bfff;">defun</span> <span style="color: #daa520;">org-insert-src-block</span> (src-code-type)
  <span style="color: #ffe4b5;">"Insert a `</span><span style="color: #a2cd5a;">SRC-CODE-TYPE</span><span style="color: #ffe4b5;">' type source code block in org-mode."</span>
  (<span style="color: #00bfff;">interactive</span>
   (<span style="color: #00bfff;">let</span> ((src-code-types
      '(<span style="color: #deb887;">"emacs-lisp"</span> <span style="color: #deb887;">"python"</span> <span style="color: #deb887;">"C"</span> <span style="color: #deb887;">"sh"</span> <span style="color: #deb887;">"java"</span> <span style="color: #deb887;">"js"</span> <span style="color: #deb887;">"clojure"</span> <span style="color: #deb887;">"C++"</span> <span style="color: #deb887;">"css"</span>
        <span style="color: #deb887;">"calc"</span> <span style="color: #deb887;">"asymptote"</span> <span style="color: #deb887;">"dot"</span> <span style="color: #deb887;">"gnuplot"</span> <span style="color: #deb887;">"ledger"</span> <span style="color: #deb887;">"lilypond"</span> <span style="color: #deb887;">"mscgen"</span>
        <span style="color: #deb887;">"octave"</span> <span style="color: #deb887;">"oz"</span> <span style="color: #deb887;">"plantuml"</span> <span style="color: #deb887;">"R"</span> <span style="color: #deb887;">"sass"</span> <span style="color: #deb887;">"screen"</span> <span style="color: #deb887;">"sql"</span> <span style="color: #deb887;">"awk"</span> <span style="color: #deb887;">"ditaa"</span>
        <span style="color: #deb887;">"haskell"</span> <span style="color: #deb887;">"latex"</span> <span style="color: #deb887;">"lisp"</span> <span style="color: #deb887;">"matlab"</span> <span style="color: #deb887;">"ocaml"</span> <span style="color: #deb887;">"org"</span> <span style="color: #deb887;">"perl"</span> <span style="color: #deb887;">"ruby"</span>
        <span style="color: #deb887;">"scheme"</span> <span style="color: #deb887;">"sqlite"</span>)))
     (list (ido-completing-read <span style="color: #deb887;">"Source code type: "</span> src-code-types))))
  (<span style="color: #00bfff;">progn</span>
    (newline-and-indent)
    (insert (format <span style="color: #deb887;">"#+BEGIN_SRC %s\n"</span> src-code-type))
    (newline-and-indent)
    (insert <span style="color: #deb887;">"#+END_SRC\n"</span>)
    (previous-line 2)
    (org-edit-src-code)))

</pre>
</div>


<p>
之后，将下列快捷键绑定
</p>

<div class="org-src-container">
<pre class="src src-emacs-lisp">(add-hook 'org-mode-hook '(lambda ()
                <span style="color: #969896;">;; </span><span style="color: #969896;">turn on flyspell-mode by default</span>
                (flyspell-mode 1)
                <span style="color: #969896;">;; </span><span style="color: #969896;">C-TAB for expanding</span>
                (local-set-key (kbd <span style="color: #deb887;">"C-&lt;tab&gt;"</span>)
                       'yas/expand-from-trigger-key)
                <span style="color: #969896;">;; </span><span style="color: #969896;">keybinding for editing source code blocks</span>
                (local-set-key (kbd <span style="color: #deb887;">"C-c s e"</span>)
                       'org-edit-src-code)
                <span style="color: #969896;">;; </span><span style="color: #969896;">keybinding for inserting code blocks</span>
                (local-set-key (kbd <span style="color: #deb887;">"C-c s i"</span>)
                       'org-insert-src-block)
                ))
</pre>
</div>

<p>
之后，就可以通过C-c s i 快捷键插入一个代码块了。
此处参考<a href="http://wenshanren.org/?p=327">http://wenshanren.org/?p=327</a>的博客。
</p>

<p>
下面对几个特殊环节进行简要介绍.
这些内容均来自于<a href="https://orgmode.org/guide/Working-with-Source-Code.html#Working-with-Source-Code">这里</a>.
</p>
</div>
<div id="outline-container-org52b078d" class="outline-3">
<h3 id="org52b078d"><span class="section-number-3">1.1.</span> <span class="todo TODO">TODO</span> using header arguments</h3>
</div>
<div id="outline-container-org7fffbfa" class="outline-3">
<h3 id="org7fffbfa"><span class="section-number-3">1.2.</span> <span class="todo TODO">TODO</span> evaluating code blocks</h3>
</div>
<div id="outline-container-org46553a3" class="outline-3">
<h3 id="org46553a3"><span class="section-number-3">1.3.</span> <span class="todo TODO">TODO</span> results of evaluation</h3>
</div>
<div id="outline-container-org37b32b8" class="outline-3">
<h3 id="org37b32b8"><span class="section-number-3">1.4.</span> <span class="todo TODO">TODO</span> exporting code blocks</h3>
</div>
<div id="outline-container-org83888a7" class="outline-3">
<h3 id="org83888a7"><span class="section-number-3">1.5.</span> <span class="todo TODO">TODO</span> extracting source code</h3>
</div>
</div>

<div id="outline-container-org97de4a5" class="outline-2">
<h2 id="org97de4a5"><span class="section-number-2">2.</span> <span class="done DONE">DONE</span> introduction: a welcome of org mode</h2>
<div class="outline-text-2" id="text-2">
</div>
<div id="outline-container-org05d33cb" class="outline-3">
<h3 id="org05d33cb"><span class="section-number-3">2.1.</span> 激活</h3>
<div class="outline-text-3" id="text-2-1">
<p>
当你初次使用一个emacs,且你并没有什么配置的时候,如何从零开始配置org呢?首先,尝试将以下代码复制到init.el文件里,当然,也可以是合理的其他位置.这样做的目的是为了激活快捷键.
</p>


<div class="org-src-container">
<pre class="src src-emacs-lisp">(global-set-key (kbd <span style="color: #deb887;">"C-c l"</span>) 'org-store-link)
(global-set-key (kbd <span style="color: #deb887;">"C-c a"</span>) 'org-agenda)
(global-set-key (kbd <span style="color: #deb887;">"C-c c"</span>) 'org-capture)
</pre>
</div>
</div>
</div>
</div>


<div id="outline-container-orge2e0166" class="outline-2">
<h2 id="orge2e0166"><span class="section-number-2">3.</span> <span class="done DONE">DONE</span> document structure 文档结构</h2>
<div class="outline-text-2" id="text-3">
<p>
文档结构被认为是文档的骨架,也就是一个"书"状的层次结构.
</p>
</div>
<div id="outline-container-org0ae6d19" class="outline-3">
<h3 id="org0ae6d19"><span class="section-number-3">3.1.</span> headlines</h3>
<div class="outline-text-3" id="text-3-1">
<p>
就是一级标题,二级标题等等.一般可以通过以下方式进行表达:
</p>


<p>
此外,可以通过"M-&lt;ENTER&gt;"键一键形成一个同等的一级标题.可以使用TAB将这个一级标题转换为一个二级标题.
一般,当打开一个org文档时,这个org文档仅仅会展露出一个骨架.此时可以通过TAB将这个骨架进行展开.
</p>
</div>
</div>
<div id="outline-container-orgfdfb762" class="outline-3">
<h3 id="orgfdfb762"><span class="section-number-3">3.2.</span> 在可见度上的遮盖与打开 visibility cycling</h3>
<div class="outline-text-3" id="text-3-2">
<p>
也就是在可见度之间的一种循环.前面有所介绍.
</p>
<ol class="org-ol">
<li>最常用的方法是使用TAB.如:</li>
</ol>


<div id="orga5542b4" class="figure">
<p><img src="./images/20200629171147.png" alt="20200629171147.png" />
</p>
</div>


<div class="org-src-container">
<pre class="src src-emacs-lisp">
,-&gt; folded FOLDED -&gt; children CHILDREN -&gt; subtree SUBTREE --.
'-----------------------------------------------------------'

</pre>
</div>

<ol class="org-ol">
<li>使用S-TAB在以下场景下实现循环.</li>
</ol>

<div class="org-src-container">
<pre class="src src-emacs-lisp">,-&gt; OVERVIEW -&gt; CONTENTS -&gt; SHOW ALL --.
'--------------------------------------'
</pre>
</div>

<ol class="org-ol">
<li>使用C-u C-u C-u TAB ,实现show all 的功能.</li>
<li>自定义一个org文档起始时刻应该具有的结构.</li>
</ol>
<p>
一般而言,可以在org文档的开头这么写:
</p>

<div class="org-src-container">
<pre class="src src-org">
<span style="color: #969896;">#+STARTUP:content</span>

</pre>
</div>
<p>
还可以设置变量比如:overview,content,showall等.
</p>
</div>
</div>
<div id="outline-container-org4e89b11" class="outline-3">
<h3 id="org4e89b11"><span class="section-number-3">3.3.</span> 在headline之间的跳动</h3>
<div class="outline-text-3" id="text-3-3">
<p>
有的时候,是想直接在headline之间进行跳动的.这些过程通常可以经由以下快捷键进行展示.
值得注意的是,这些快捷键显然是C-c加上了一些独特的后缀.
</p>
<ol class="org-ol">
<li>C-c C-n Next heading.从当前文本跳跃到上一个headline处,或从当前的headline跳跃到上一个headline处,而不论上一个headline是否与此处的headline同级别.你可以通过这个按钮跳跃到与光标相比最近的上一个headline处.</li>
<li>C-c C-p Previous heading.类上</li>
<li>C-c C-f Next heading same level 只会在同一level的headline之间跳转,并且归于他们的上级那里,出不去.</li>
<li>C-c C-b provious heading same level类上</li>
<li>C-c C-u backward to higher level headings.?</li>
</ol>
</div>
</div>
<div id="outline-container-org5b7ecbd" class="outline-3">
<h3 id="org5b7ecbd"><span class="section-number-3">3.4.</span> 结构编辑 structure editing</h3>
<div class="outline-text-3" id="text-3-4">
<p>
结构编辑主要存在以下快捷键.
</p>
<ol class="org-ol">
<li>M-RET 添加一个同级别的headline</li>
<li>M-S-RET 添加一个同级别的todo headline</li>
<li>M-LEFT M-RIGHT 将当前headline升级或者降级</li>
<li>M-UP M-DOWN 将当前headline同其包括的所有内容上移或者下移</li>
<li>C-c C-W 将本healine的所有内容归属到另一个一级标题之下</li>
<li>C-x n s C-x n w 在buffer层面进行移动</li>
</ol>
</div>
</div>
<div id="outline-container-org83f5204" class="outline-3">
<h3 id="org83f5204"><span class="section-number-3">3.5.</span> sparse trees</h3>
<div class="outline-text-3" id="text-3-5">
<p>
   sparse tree 是一种有侧重地进行"目标选择"的工具.(不太确定,我目前这样理解这一功能)
针对这种工具,基本的使用方法有:
</p>
<ol class="org-ol">
<li>C-c / 这可以打开一个sparse tree 按钮</li>
<li>C-c / r 关键字搜素.比如,在本文中,搜素和展示有关headline的内容.</li>
</ol>
</div>
</div>

<div id="outline-container-orgdfd1cc3" class="outline-3">
<h3 id="orgdfd1cc3"><span class="section-number-3">3.6.</span> plain list 简单的列表</h3>
<div class="outline-text-3" id="text-3-6">
<p>
简单的列表可以通过以下标记符号进行快速地创建.
使用"-" "+" "*" 进行无序号列表的创建,使用"1." "1 "进行有序号列表的创建.使用"::"进行解释.
下面是一个例子.值得注意的是,这里"::"充当的作用,与latex中\label极为相似.二者都是在给出一个方便于引用的对象.关于如何应用之,可以看<a href="#org0dbd712">5.2</a>.
</p>

<div class="org-src-container">
<pre class="src src-org">
<span style="color: #87ceff;">* Lord of the Rings</span>
  My favorite scenes are (in this order)
  1. The attack of the Rohirrim
  2. Eowyn's fight with the witch king
     + this was already my favorite scene in the book
     + I really like Miranda Otto.
  Important actors in this film are:
  - <span style="font-weight: bold;">Elijah Wood ::</span> He plays Frodo
  - <span style="font-weight: bold;">Sean Astin ::</span> He plays Sam, Frodo's friend.

</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-orgaad3b2b" class="outline-2">
<h2 id="orgaad3b2b"><span class="section-number-2">4.</span> <span class="done DONE">DONE</span> table 表格的使用</h2>
<div class="outline-text-2" id="text-4">
<p>
表格的使用主要通过"|"符号实现
一般一个表格是需要通过这样子完成的
</p>
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">


<colgroup>
<col  class="org-left" />

<col  class="org-right" />

<col  class="org-right" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">Name</th>
<th scope="col" class="org-right">Phone</th>
<th scope="col" class="org-right">Age</th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-left">Peter</td>
<td class="org-right">1234</td>
<td class="org-right">17</td>
</tr>

<tr>
<td class="org-left">Anna</td>
<td class="org-right">4321</td>
<td class="org-right">25</td>
</tr>

<tr>
<td class="org-left">&#xa0;</td>
<td class="org-right">&#xa0;</td>
<td class="org-right">&#xa0;</td>
</tr>

<tr>
<td class="org-left">&#xa0;</td>
<td class="org-right">&#xa0;</td>
<td class="org-right">&#xa0;</td>
</tr>
</tbody>
</table>

<div class="org-src-container">
<pre class="src src-org"><span style="color: #c397d8;">| Name  | Phone | Age |</span>
<span style="color: #c397d8;">|-------+-------+-----|</span>
<span style="color: #c397d8;">| Peter |  1234 |  17 |</span>
<span style="color: #c397d8;">| Anna  |  4321 |  25 |</span>
<span style="color: #c397d8;">|       |       |     |</span>
<span style="color: #c397d8;">|       |       |     |</span>
</pre>
</div>

<p>
但是,显然,可以看出,这样的表格无法进行高效的输入,因为中间那行长长的横线很烦人.解决方案通常是:当你输入了"|-"之后,直接使用TAB进行自动补充.除此之外,你也可以通过TAB形成一个新的填空.
</p>
</div>
<div id="outline-container-org8782a19" class="outline-3">
<h3 id="org8782a19"><span class="section-number-3">4.1.</span> 使用C-c | 形成一个新的表格</h3>
<div class="outline-text-3" id="text-4-1">
<p>
如题所述,虽然不怎么常用.
</p>
</div>
</div>
<div id="outline-container-orgb84a536" class="outline-3">
<h3 id="orgb84a536"><span class="section-number-3">4.2.</span> cell基本变换</h3>
<div class="outline-text-3" id="text-4-2">
<ul class="org-ul">
<li>C-c C-c 在不移动点的前提下重新对齐表格</li>
<li>TAB 横向,移动到下一个</li>
<li>S-TAB 横向,前一个</li>
<li>RET 下一行</li>
<li>S-方向键 让当前的cell和周围的某个cell进行交换</li>
</ul>
</div>
</div>
<div id="outline-container-orge02e346" class="outline-3">
<h3 id="orge02e346"><span class="section-number-3">4.3.</span> <span class="done DONE">DONE</span> 行与列的变化</h3>
<div class="outline-text-3" id="text-4-3">
<p>
行与列的变换都是基于"M"进行的.
</p>
<ol class="org-ol">
<li>M-LEFT M-RIGHT 将当前的列左移或者右移</li>
<li>M-UP M-DOWN 将当前行上移或者下移</li>
<li>M-S-LEFT 删除当前列</li>
<li>M-S-RIGHT 插入新列</li>
<li>M-S-UP 删除当前行</li>
<li>M-S-DOWN 插入新行</li>
<li>C-c -, C-c RET 分别表示插入一条horizontal line,在下面,或者上面</li>
<li>C-c ^ 列排序</li>
</ol>
</div>
</div>
</div>

<div id="outline-container-org4f014d4" class="outline-2">
<h2 id="org4f014d4"><span class="section-number-2">5.</span> <span class="done DONE">DONE</span> hyperlinks 超链接</h2>
<div class="outline-text-2" id="text-5">
<p>
超链接,不用多数,一般遵循[ [link] [description] ] .对其进行编辑,可以通过C-c C-l进行.
</p>
</div>

<div id="outline-container-orga0ea36e" class="outline-3">
<h3 id="orga0ea36e"><span class="section-number-3">5.1.</span> 内部链接</h3>
<div class="outline-text-3" id="text-5-1">
<p>
内部链接这里作者并没有给出详细的阐述.笔者尝试了以下,对于特殊的一些格式似乎都是可以识别的.
</p>
</div>
</div>

<div id="outline-container-org0dbd712" class="outline-3">
<h3 id="org0dbd712"><span class="section-number-3">5.2.</span> 外部链接</h3>
<div class="outline-text-3" id="text-5-2">
<p>
首先,罗列一些典型的外部链接:
</p>

<div class="org-src-container">
<pre class="src src-org"><span style="color: #00bfff; text-decoration: underline;"><a href="http://www.astro.uva.nl/=dominik">http://www.astro.uva.nl/=dominik</a></span>    on the web
<span style="color: #00bfff; text-decoration: underline;"><a href="file:/home/dominik/images/jupiter.jpg">file:/home/dominik/images/jupiter.jpg</a></span>   file, absolute path
/home/dominik/images/jupiter.jpg    same as above
<span style="color: #00bfff; text-decoration: underline;"><a href="file:papers/last.pdf">file:papers/last.pdf</a></span>    file, relative path
./papers/last.pdf&#8217;  same as above
<span style="color: #00bfff; text-decoration: underline;"><a href="file:projects.org">file:projects.org</a></span>   another Org file
<span style="color: #00bfff; text-decoration: underline;"><a href="docview:papers/last.pdf::NNN">docview:papers/last.pdf::NNN</a></span>    open in DocView mode at page NNN
id:B7423F4D-2E8A-471B-8810-C40F074717E9 link to heading by ID
<span style="color: #00bfff; text-decoration: underline;"><a href="news:comp.emacs">news:comp.emacs</a></span> Usenet link
<span style="color: #00bfff; text-decoration: underline;"><a href="mailto:adent@galaxy.net">mailto:adent@galaxy.net</a></span> mail link
<span style="color: #00bfff; text-decoration: underline;"><a href="mhe:folder#id">mhe:folder#id</a></span>   MH-E message link
<span style="color: #00bfff; text-decoration: underline;"><a href="rmail:folder#id">rmail:folder#id</a></span> Rmail message link
<span style="color: #00bfff; text-decoration: underline;"><a href="gnus:group#id">gnus:group#id</a></span>   Gnus article link
<span style="color: #00bfff; text-decoration: underline;"><a href="bbdb:R.*Stallman">bbdb:R.*Stallman</a></span>    BBDB link (with regexp)
<span style="color: #00bfff; text-decoration: underline;"><a href="irc:/irc.com/#emacs/bob">irc:/irc.com/#emacs/bob</a></span> IRC link
<span style="color: #00bfff; text-decoration: underline;"><a href="info:org#Hyperlinks">info:org#Hyperlinks</a></span>     Info node link

&#38500;&#27492;&#20043;&#22806;,&#36824;&#26377;&#19968;&#20123;&#29305;&#27530;&#24773;&#20917;,&#36825;&#20123;&#29305;&#27530;&#24773;&#20917;&#21253;&#25324;:
<span style="color: #00bfff; text-decoration: underline;"><a href="file:~/code/main.c::255">file:~/code/main.c::255</a></span> Find line 255
<span style="color: #00bfff; text-decoration: underline;"><a href="file:~/xx.org::MyTarget">file:~/xx.org::MyTarget</a></span> Find &#8216;<span style="text-decoration: underline;">&lt;&lt;My Target&gt;&gt;</span>&#8217;
<span style="color: #00bfff; text-decoration: underline;"><a href="file:~/xx.org::#my-custom-id">file:~/xx.org::#my-custom-id</a></span>    Find entry with a custom ID
</pre>
</div>
</div>
</div>

<div id="outline-container-org68d4b32" class="outline-3">
<h3 id="org68d4b32"><span class="section-number-3">5.3.</span> handling links, 处理链接</h3>
<div class="outline-text-3" id="text-5-3">
<ol class="org-ol">
<li>C-c C-l 插入一个链接.当该处存在链接时,其意义是修改一个链接.</li>
<li>C-c C-o 打开一个链接.</li>
</ol>
</div>
</div>
</div>
<div id="outline-container-org6596810" class="outline-2">
<h2 id="org6596810"><span class="section-number-2">6.</span> <span class="done DONE">DONE</span> todo iteems  待办项目</h2>
<div class="outline-text-2" id="text-6">
</div>
<div id="outline-container-org207fc8f" class="outline-3">
<h3 id="org207fc8f"><span class="section-number-3">6.1.</span> 有关todo的基本操作</h3>
<div class="outline-text-3" id="text-6-1">
<p>
当一个items的前面包含todo的时候,它就变成了一个todo 的item.
一般而言,todo的基本命令如下:
</p>
<ol class="org-ol">
<li>C-c C-t 打开todo选项.</li>
<li>S-左右 cycling todo的状态吧.</li>
<li>C-c / t  在sparse tree里看todo.有关于sparse tree的信息参见sparse tree.</li>
<li>M-x org-agenda t 展现出全局的todo</li>
<li>S-M-RET 输入一个新的todo.</li>
</ol>
</div>
</div>

<div id="outline-container-org0e1cd30" class="outline-3">
<h3 id="org0e1cd30"><span class="section-number-3">6.2.</span> <span class="done DONE">DONE</span> muti-state workflow  多态工作流</h3>
<div class="outline-text-3" id="text-6-2">
<p>
muti-state指的就是"并非所有的待办都是todo-&gt;done"循环的产物.比如debug的过程,可能是下面的形式.
</p>


<div class="org-src-container">
<pre class="src src-emacs-lisp">(<span style="color: #00bfff;">setq</span> org-todo-keywords
  '((sequence <span style="color: #deb887;">"TODO(t)"</span> <span style="color: #deb887;">"|"</span> <span style="color: #deb887;">"DONE(d)"</span>)
    (sequence <span style="color: #deb887;">"REPORT(r)"</span> <span style="color: #deb887;">"BUG(b)"</span> <span style="color: #deb887;">"KNOWNCAUSE(k)"</span> <span style="color: #deb887;">"|"</span> <span style="color: #deb887;">"FIXED(f)"</span>)))

</pre>
</div>


<p>
这时,简简单单使用todo这一套就不太管用了.我觉得这里的东西没什么太多的实际用途.
</p>
</div>
</div>
<div id="outline-container-orgbbe6dd8" class="outline-3">
<h3 id="orgbbe6dd8"><span class="section-number-3">6.3.</span> Progress Logging 进展记录</h3>
<div class="outline-text-3" id="text-6-3">
<p>
进展记录,最简单的使用方法是通过引入一个前缀"C-u",来加入一个时间戳.也就是通过"C-u C-c C-t"来改变todo项目的状态.
emacs里面有专门的时间记录,详细可参阅<a href="https://orgmode.org/guide/Clocking-Work-Time.html#Clocking-Work-Time">此处</a>.
</p>
</div>
<div id="outline-container-org75b36fa" class="outline-4">
<h4 id="org75b36fa"><span class="section-number-4">6.3.1.</span> <span class="todo TODO">TODO</span> 阅读clocking working time</h4>
</div>
<div id="outline-container-org96fb230" class="outline-4">
<h4 id="org96fb230"><span class="section-number-4">6.3.2.</span> closing items 关闭项目</h4>
<div class="outline-text-4" id="text-6-3-2">
<p>
通过引入
(setq org-log-done 'time)
使得每次有一个item被标记为done之后,都会插入一个时间戳.
同样地,也可以通过引入
(setq org-log-done 'note)
在结束项目的地方插入一行注释.
</p>
</div>
</div>
<div id="outline-container-org1ac9eea" class="outline-4">
<h4 id="org1ac9eea"><span class="section-number-4">6.3.3.</span> tracking todo state changes</h4>
<div class="outline-text-4" id="text-6-3-3">
<p>
没兴趣做.略.
</p>
</div>
</div>
</div>
<div id="outline-container-orga181409" class="outline-3">
<h3 id="orga181409"><span class="section-number-3">6.4.</span> Priorities 优先级</h3>
<div class="outline-text-3" id="text-6-4">
<p>
就是对todo设置优先级的问题.一般优先级会用ABC进行表达.
</p>
<ol class="org-ol">
<li>"C-c ,",设置优先级,可以输入ABC.通过空格键进行移除.</li>
<li>S-上下 改变优先级.</li>
</ol>
</div>
</div>
<div id="outline-container-orgd3c07df" class="outline-3">
<h3 id="orgd3c07df"><span class="section-number-3">6.5.</span> break tasks down into subtasks 将任务分解为子任务</h3>
<div class="outline-text-3" id="text-6-5">
<p>
在父标题下使用<code>[/]</code>或者<code>[%]</code>,之后,在子标题里设置todo的状态,就可以了.
</p>
</div>
</div>
<div id="outline-container-org7bb0830" class="outline-3">
<h3 id="org7bb0830"><span class="section-number-3">6.6.</span> checkboxes 复选框</h3>
<div class="outline-text-3" id="text-6-6">
<p>
在使用plain list的时候,可能会用到这个功能来进行进度管理.
比如下面的例子:
</p>

<div class="org-src-container">
<pre class="src src-org">
<span style="color: #87ceff;">* </span><span style="color: #d54e53;">TODO</span><span style="color: #87ceff;"> Organize party </span><span style="color: #d54e53;">[1/2]</span>
  - <span style="font-weight: bold;">[ ]</span> call people <span style="color: #d54e53;">[0/2]</span>
    - <span style="font-weight: bold;">[ ]</span> Peter
    - <span style="font-weight: bold;">[ ]</span> Sarah
  - <span style="font-weight: bold;">[X]</span> order food
&#20351;&#29992;C-c C-c&#26469;&#36827;&#34892;checkboxes&#29366;&#24577;&#30340;&#20999;&#25442;.

</pre>
</div>
</div>
</div>
</div>

<div id="outline-container-org28a6768" class="outline-2">
<h2 id="org28a6768"><span class="section-number-2">7.</span> <span class="done DONE">DONE</span> Tags 标签</h2>
<div class="outline-text-2" id="text-7">
<p>
标签是用来进行交叉引用的一类东西,标签类似于完成latex里label的功能.标签一般被放在headline的后面,前与后都用":"作为连接.下面是一个简单的例子.
</p>

<div class="org-src-container">
<pre class="src src-org"><span style="color: #87ceff;">* Meeting with the French group      </span><span style="color: #87ceff; font-weight: bold;">:work:</span>
<span style="color: #e7c547;">** Summary by Frank                  </span><span style="color: #e7c547; font-weight: bold;">:boss:notes:</span>
<span style="color: #c397d8;">*** </span><span style="color: #d54e53;">TODO</span><span style="color: #c397d8;"> Prepare slides for him      </span><span style="color: #c397d8; font-weight: bold;">:action:</span>
</pre>
</div>
</div>

<div id="outline-container-orgf8fce53" class="outline-3">
<h3 id="orgf8fce53"><span class="section-number-3">7.1.</span> tag inheritance 标签层级</h3>
<div class="outline-text-3" id="text-7-1">
<p>
以上面的例子为示,标签的层级具有一定的关联性.比如最后的headline,它包含着所有的标签,也就是,他继承了他的父标题以及祖父标题的标签.
</p>

<p>
当然,也可以在文章中定义标签,这种定义方法为:
</p>

<div class="org-src-container">
<pre class="src src-org"><span style="color: #969896;">#+FILETAGS: :Peter:Boss:Secret:</span>
</pre>
</div>
</div>
</div>

<div id="outline-container-org2aaca23" class="outline-3">
<h3 id="org2aaca23"><span class="section-number-3">7.2.</span> 设置标签&#xa0;&#xa0;&#xa0;<span class="tag"><span class="test">test</span></span></h3>
<div class="outline-text-3" id="text-7-2">
<ol class="org-ol">
<li>M-TAB 无法使用,与系统的页面转换重合</li>
<li>C-c C-q 为当前的headline插入一个tag</li>
<li>C-c C-c 当光标在headline时,同2</li>
</ol>

<p>
除了前面那种一个个插入标签的方法之外,org支持插入一个标签列表,其基本语法为:
</p>

<div class="org-src-container">
<pre class="src src-org"><span style="color: #969896;">#+TAGS: @work @home @tennisclub</span>
<span style="color: #969896;">#+TAGS: laptop car pc sailboat</span>

</pre>
</div>

<p>
除此之外,emacs支持快速标签选择,也就是一个按键输入一个标签,这需要在配置文件中写入:
</p>

<div class="org-src-container">
<pre class="src src-emacs-lisp">(<span style="color: #00bfff;">setq</span> org-tag-alist '((<span style="color: #deb887;">"@work"</span> . ?w)
          (<span style="color: #deb887;">"@home"</span> . ?h)
          (<span style="color: #deb887;">"@laptop"</span> . ?l)))
</pre>
</div>
</div>
</div>

<div id="outline-container-org1e6f193" class="outline-3">
<h3 id="org1e6f193"><span class="section-number-3">7.3.</span> 标签组</h3>
<div class="outline-text-3" id="text-7-3">
<p>
标签组是很多个标签组成的集合.他的用途是:当进行标签的搜索时,如果输入了标签组的名字,那么就可以返回匹配标签组内所有标签headlines
标签组的定义方法如下.
</p>

<div class="org-src-container">
<pre class="src src-org"><span style="color: #969896;">#+TAGS: [GTD : Control Persp]</span>
<span style="color: #969896;">#+TAGS: {Context : @home @work}</span>
</pre>
</div>
</div>
</div>

<div id="outline-container-org5f42bf9" class="outline-3">
<h3 id="org5f42bf9"><span class="section-number-3">7.4.</span> 标签的搜索</h3>
<div class="outline-text-3" id="text-7-4">
<ol class="org-ol">
<li>C-c / m or C-c \  生成一个sparse tree,</li>
<li>M-x org-agenda m  通过agenda file 生成一个全局的标签匹配列表</li>
<li>M-x org-agenda M  在2的基础上,仅仅显示带有TODO标签的那些.</li>
</ol>

<p>
值得注意的是,这些标签均支持布尔运算.比如使用"a+b-c"代表包含a标签并包含b标签且不包含c标签的所有匹配项.使用"x|y"代表包含x标签或包含y标签的匹配项.
</p>
</div>
</div>
</div>





<div id="outline-container-org4f943d4" class="outline-2">
<h2 id="org4f943d4"><span class="section-number-2">8.</span> <span class="done DONE">DONE</span> Properties</h2>
<div class="outline-text-2" id="text-8">
<p>
properties类似于一种“面向对象”的使用方式，也就是定义了一个实体，下面有诸多变量，并依据这些变量具有某些特定的数值来描述其属性。
鉴于很无聊，就将其略去。
</p>
</div>
</div>
<div id="outline-container-org793edec" class="outline-2">
<h2 id="org793edec"><span class="section-number-2">9.</span> <span class="done DONE">DONE</span> dates and times</h2>
<div class="outline-text-2" id="text-9">
</div>
<div id="outline-container-orge2fc446" class="outline-3">
<h3 id="orge2fc446"><span class="section-number-3">9.1.</span> timestamps 时间戳</h3>
<div class="outline-text-3" id="text-9-1">
<p>
此处存在各种各样格式的时间戳，然而，对我而言，这并非需要关心或者讨论的重点，因而对其仅进行简要介绍.
</p>
</div>
<div id="outline-container-org6414515" class="outline-4">
<h4 id="org6414515"><span class="section-number-4">9.1.1.</span> C-c . 插入时间戳</h4>
<div class="outline-text-4" id="text-9-1-1">
<p>
这个命令用来插入一个时间戳,(如果有时间戳了,那么就是修改这个时间戳).连续使用两次这个指令可以形成一个时间戳的范围,在这个范围之内可以完成一些或许更加一般的事.
<span class="timestamp-wrapper"><span class="timestamp">&lt;2020-06-07 Sun&gt;&#x2013;&lt;2020-06-16 Tue&gt;</span></span>
</p>
</div>
</div>
<div id="outline-container-orgc502916" class="outline-4">
<h4 id="orgc502916"><span class="section-number-4">9.1.2.</span> C-c ! 插入非活动类型时间戳</h4>
<div class="outline-text-4" id="text-9-1-2">
<p>
这个命令插入的时间戳不会被调用在agenda里面.
</p>
</div>
</div>
<div id="outline-container-org1811a44" class="outline-4">
<h4 id="org1811a44"><span class="section-number-4">9.1.3.</span> S-方向键</h4>
<div class="outline-text-4" id="text-9-1-3">
<p>
控制上下左右,似乎有一些独特的细节,不过我不关心.
</p>
</div>
</div>
</div>
<div id="outline-container-orga0fb509" class="outline-3">
<h3 id="orga0fb509"><span class="section-number-3">9.2.</span> deadline and scheduling 截止日期与时间表</h3>
<div class="outline-text-3" id="text-9-2">
</div>
<div id="outline-container-org5bc0199" class="outline-4">
<h4 id="org5bc0199"><span class="section-number-4">9.2.1.</span> C-c C-d</h4>
<div class="outline-text-4" id="text-9-2-1">
<p>
这样就直接输入了一个deadline.
</p>
</div>
</div>

<div id="outline-container-org593cdaf" class="outline-4">
<h4 id="org593cdaf"><span class="section-number-4">9.2.2.</span> C-c C-s</h4>
<div class="outline-text-4" id="text-9-2-2">
<p>
schedule是一种描述一种东西什么时间开始的日期.
[测试了,无法使用.]
</p>
</div>
</div>
</div>

<div id="outline-container-org14e762e" class="outline-3">
<h3 id="org14e762e"><span class="section-number-3">9.3.</span> clocking work time 记录在特定项目上消耗的时间</h3>
<div class="outline-text-3" id="text-9-3">
<p>
如题所示,这一章来看一看如何记录消耗在特定项目上的时间.
</p>
<ol class="org-ol">
<li>C-c C-x C-i 打开一个clock（clock in）</li>
<li>C-c C-x C-o 关闭一个clock（clock out）</li>
<li>C-c C-x C-e 升级当前时钟的估计工作量</li>
<li>C-c C-x C-q 退出当前时钟，如果不小心打开了一个时钟，可以用这个选项</li>
<li>C-c C-x C-j jump，跳转到任务中当前计时的标题</li>
</ol>
</div>
</div>
</div>
<div id="outline-container-org566ac47" class="outline-2">
<h2 id="org566ac47"><span class="section-number-2">10.</span> INPROGRESS [#B] capture, refile, archive</h2>
<div class="outline-text-2" id="text-10">
</div>
<div id="outline-container-org90650e6" class="outline-3">
<h3 id="org90650e6"><span class="section-number-3">10.1.</span> capture</h3>
<div class="outline-text-3" id="text-10-1">
<p>
capture（名词，捕捉）: capture是指在知识系统中快速捕捉新的主意与任务（task）的一种方式。并且，这种捕捉还可以关联与其相关的一些材料。这一整套的流程被称作capture。
</p>
</div>
<div id="outline-container-orge526af2" class="outline-4">
<h4 id="orge526af2"><span class="section-number-4">10.1.1.</span> setting up capture 设置capture</h4>
<div class="outline-text-4" id="text-10-1-1">
<p>
可以通过下面命令设置默认的笔记路径。
</p>

<div class="org-src-container">
<pre class="src src-emacs-lisp">(<span style="color: #00bfff;">setq</span> org-default-notes-file (concat org-directory <span style="color: #deb887;">"/notes.org"</span>))
</pre>
</div>
<p>
也可以通过下面的方式设置一个全局快捷键（这个快捷键的设置早在【引用】里就已经给出）
</p>

<div class="org-src-container">
<pre class="src src-emacs-lisp">(global-set-key (kbd <span style="color: #deb887;">"C-c c"</span>) 'org-capture)
</pre>
</div>
</div>
</div>
<div id="outline-container-org28aa945" class="outline-4">
<h4 id="org28aa945"><span class="section-number-4">10.1.2.</span> using capture 使用capture</h4>
<div class="outline-text-4" id="text-10-1-2">
<ol class="org-ol">
<li>M-x org-capture</li>
</ol>
<p>
执行org-capture.
</p>

<ol class="org-ol">
<li>C-c C-c</li>
</ol>
<p>
返回捕获过程之前的窗口配置
</p>

<ol class="org-ol">
<li>C-c C-w</li>
</ol>
<p>
定档(finalize)整个capture的过程,即将笔记移动到一个新的位置.
</p>

<ol class="org-ol">
<li>C-c C-k</li>
</ol>
</div>
</div>
<div id="outline-container-org80e4a66" class="outline-4">
<h4 id="org80e4a66"><span class="section-number-4">10.1.3.</span> <span class="done DONE">DONE</span> capture templates</h4>
<div class="outline-text-4" id="text-10-1-3">
<p>
 中途推出按钮.
这个地方并不是特别清楚.应该是定义模板的一种格式.设置模板的源代码为:
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp">(<span style="color: #00bfff;">setq</span> org-capture-templates
  '((<span style="color: #deb887;">"t"</span> <span style="color: #deb887;">"Todo"</span> entry (file+headline <span style="color: #deb887;">"~/org/gtd.org"</span> <span style="color: #deb887;">"Tasks"</span>)
     <span style="color: #deb887;">"* TODO %?\n %i\n %a"</span>)
    (<span style="color: #deb887;">"j"</span> <span style="color: #deb887;">"Journal"</span> entry (file+datetree <span style="color: #deb887;">"~/org/journal.org"</span>)
     <span style="color: #deb887;">"* %?\n Enetered on %U\n %i\n %a"</span>)))
</pre>
</div>
<p>
其表达的意义是:
</p>
<ul class="org-ul">
<li>当使用t时便可以创建一个todo,并导出一个链接,链接的形式为:文件名+章节名,而后作为一个Tasks存储在~/org/gtd.org这个文档里.</li>
<li>%?表示在把模板内容填充完毕之后,光标应该停留的位置;</li>
<li>%i (initial content) 表示被填充的初始内容,只有在有文本内容被选中,且使用了C-u前缀进行capture的前提下这个功能才能使用.</li>
<li>%a annotation,注释.通常是用org-store-link创建的链接</li>
</ul>
</div>
</div>
</div>

<div id="outline-container-orgfcf50c8" class="outline-3">
<h3 id="orgfcf50c8"><span class="section-number-3">10.2.</span> refile and copy 文件重归档与复制</h3>
<div class="outline-text-3" id="text-10-2">
<p>
本节的意思,似乎就是简化剪切,切换,粘贴这一整套的文本条目重新归档的过程.
</p>
<ol class="org-ol">
<li>C-c C-w</li>
</ol>
<p>
C-c C-w 就是说,要把这一小节(光标所在的小节)的内容归档至其他的某个小节.
</p>

<ol class="org-ol">
<li>C-u C-c C-w</li>
</ol>
<p>
使用refile界面跳转到标题.
</p>

<ol class="org-ol">
<li>C-u C-u C-c C-w</li>
</ol>


<ol class="org-ol">
<li>C-c M-w</li>
</ol>
</div>
</div>
</div>

<div id="outline-container-org09d72cf" class="outline-2">
<h2 id="org09d72cf"><span class="section-number-2">11.</span> INPROGRESS [#A] agenda views</h2>
<div class="outline-text-2" id="text-11">
<p>
Agenda是一种对零散的todo文件进行聚集处理的操作。
</p>
</div>

<div id="outline-container-org20a2b76" class="outline-3">
<h3 id="org20a2b76"><span class="section-number-3">11.1.</span> agenda files</h3>
<div class="outline-text-3" id="text-11-1">
<ol class="org-ol">
<li>C-c [ 将当前文件加入到agenda file列表中</li>
<li>C-c ] 将当前文件从agenda file列表中移除</li>
<li>C-'</li>
<li>C-, cycle through agenda file list， one after another</li>
</ol>
</div>
</div>

<div id="outline-container-org73d0bc0" class="outline-3">
<h3 id="org73d0bc0"><span class="section-number-3">11.2.</span> The Agenda Dispatcher 日程调度分配器</h3>
<div class="outline-text-3" id="text-11-2">
<p>
使用M-x org-agenda进行激活,或者使用快捷键C-c a.
分配器提供了以下一些默认的指令:
</p>
<ul class="org-ul">
<li>a 创建一个日历形式的日程</li>
<li>t T 创建一个包含所有tudo项的列表</li>
<li>m M 创建一个匹配了表达式的所有headline的列表</li>
<li>s Create a list of entries selected by a boolean expression of keywords and/or regular expressions that must or must not occur in the entry. 不是特别理解这句话什么意思.</li>
</ul>
</div>
</div>
<div id="outline-container-org27364be" class="outline-3">
<h3 id="org27364be"><span class="section-number-3">11.3.</span> The Weekly /Daily  Agenda</h3>
<div class="outline-text-3" id="text-11-3">
<p>
就像是传统的纸上的日程表一样,weekly-daily agenda给出每天或每周所需要干的事.
比如,在使用M-x org-agenda a命令时,其基本的思路是从org文件列表中提取条目信息编译形成当前周的日历.
</p>
</div>
</div>
<div id="outline-container-org50536e7" class="outline-3">
<h3 id="org50536e7"><span class="section-number-3">11.4.</span> the global todo list 全局todo列表</h3>
<div class="outline-text-3" id="text-11-4">
<p>
全局todo列表将所有的未完成的todo项目进行了一个统一的收集,可以用t关键字进行查询.
</p>
<ul class="org-ul">
<li>M-x org-agenda t 展示全局todo列表</li>
<li>M-x org-agenda T 和一条相似,不过可以允许搜索特定的todo关键词</li>
</ul>
</div>
</div>
<div id="outline-container-org0c0a1a1" class="outline-3">
<h3 id="org0c0a1a1"><span class="section-number-3">11.5.</span> Matching Tags and Properties 匹配标签和属性</h3>
</div>
</div>
<div id="outline-container-org202e842" class="outline-2">
<h2 id="org202e842"><span class="section-number-2">12.</span> <span class="done DONE">DONE</span> markup for rich contents</h2>
<div class="outline-text-2" id="text-12">
<p>
也就是关于org进行文本信息标注的一些常见而具体的手段.
</p>
</div>
<div id="outline-container-org5d5545c" class="outline-3">
<h3 id="org5d5545c"><span class="section-number-3">12.1.</span> paragraphs 段落</h3>
<div class="outline-text-3" id="text-12-1">
<p>
同makrdown一样,paragraph也是通过一个空的行进行段与段之间的分割.除此之外,也可以使用latex中常见的"\\".
但是,这样的一个问题是,对于一些特殊的格式,比如诗歌中的空格,要怎么进行表现呢?
一般会通过如下方式:
</p>

<div class="org-src-container">
<pre class="src src-org"><span style="color: #969896;">#+BEGIN_VERSE</span>
 Great clouds overhead
 Tiny black birds rise and fall
 Snow covers Emacs

    ---AlexSchroeder
<span style="color: #969896;">#+END_VERSE</span>
</pre>
</div>
<p>
初次之外,就是对"语录"的格式要求.markdown里使用"&gt;"进行,而在org里,其基本文法是:
</p>

<div class="org-src-container">
<pre class="src src-org"><span style="color: #969896;">#+BEGIN_QUOTE</span>
Everything should be made as simple as possible,
but not any simpler ---Albert Einstein
<span style="color: #969896;">#+END_QUOTE</span>
</pre>
</div>
<p>
关于居中,常见的使用方法是:
</p>

<div class="org-src-container">
<pre class="src src-org"><span style="color: #969896;">#+BEGIN_CENTER</span>
Everything should be made as simple as possible, \\
but not any simpler
<span style="color: #969896;">#+END_CENTER</span>
</pre>
</div>
<p>
综上,仅仅需要记住verse,quote,center三种形式,就可以解决问题.
</p>
</div>
</div>

<div id="outline-container-orgb427ef4" class="outline-3">
<h3 id="orgb427ef4"><span class="section-number-3">12.2.</span> Emphasis and Monospace 强调与等宽字体</h3>
<div class="outline-text-3" id="text-12-2">
<p>
You can make words ‘*bold*’, ‘/italic/’, ‘<sub>underlined</sub>_’, ‘=verbatim=’ and ‘~code~’, and, if you must, ‘+strike-through+’. Text in the code and verbatim string is not processed for Org specific syntax; it is exported verbatim.
</p>
<div class="org-src-container">
<pre class="src src-org">You can make words &#8216;*bold*&#8217;, &#8216;/italic/&#8217;, &#8216;_underlined_&#8217;, &#8216;=verbatim=&#8217; and &#8216;~code~&#8217;, and, if you must, &#8216;+strike-through+&#8217;. Text in the code and verbatim string is not processed for Org specific syntax; it is exported verbatim. 
</pre>
</div>
</div>
</div>

<div id="outline-container-org1c4d0ba" class="outline-3">
<h3 id="org1c4d0ba"><span class="section-number-3">12.3.</span> embedded latex</h3>
<div class="outline-text-3" id="text-12-3">
<p>
org对latex的嵌入十分灵活,除了下文中给出的世界嵌入latex风格的任何语言之外,此处还有最基本的对latex风格公式的支持.
比如下面这段话,完全可以在org中直接使用:
</p>

<div class="org-src-container">
<pre class="src src-org">The radius of the sun is R_sun = 6.96 x 10^8 m.  On the other hand,
the radius of Alpha Centauri is R_{Alpha Centauri} = 1.28 x R_{sun}.

\begin{equation}                        % arbitrary environments,
x=\sqrt{b}                              % even tables, figures
\end{equation}                          % etc

If $a^2=b$ and \( b=2 \), then the solution must be
either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
</pre>
</div>
<p>
其效果为:
The radius of the sun is R<sub>sun</sub> = 6.96 x 10<sup>8</sup> m.  On the other hand,
the radius of Alpha Centauri is R<sub>Alpha Centauri</sub> = 1.28 x R<sub>sun</sub>.
</p>

<p>
\begin{equation}                        % arbitrary environments,
x=\sqrt{b}                              % even tables, figures
\end{equation}                          % etc
</p>

<p>
If \(a^2=b\) and \( b=2 \), then the solution must be
either \[ a=+\sqrt{2} \] or \[ a=-\sqrt{2} \].
</p>
</div>
</div>

<div id="outline-container-org0d8f8ab" class="outline-3">
<h3 id="org0d8f8ab"><span class="section-number-3">12.4.</span> literal examples 一些例子</h3>
<div class="outline-text-3" id="text-12-4">
<p>
这里主要想介绍一些文学编程中如何进行举例的问题.
一般来说,定义一个例子的方法是:
</p>

<div class="org-src-container">
<pre class="src src-org"><span style="color: #969896;">#+BEGIN_EXAMPLE</span>
  Some example from a text file.
<span style="color: #969896;">#+END_EXAMPLE</span>
</pre>
</div>
<p>
当然,这种方法也可以被简化为空格+冒号.也就是
</p>

<div class="org-src-container">
<pre class="src src-org">Here is an example
   <span style="color: #e7c547;">: Some example from a text file.</span>
</pre>
</div>
<p>
其效果是:
Here is an example
</p>
<pre class="example">
Some example from a text file.
</pre>

<p>
除此之外, 还有关于插入代码块的内容,这个在之后将会进行详细介绍.
</p>
</div>
</div>

<div id="outline-container-org2509880" class="outline-3">
<h3 id="org2509880"><span class="section-number-3">12.5.</span> Images 插入图片的问题</h3>
<div class="outline-text-3" id="text-12-5">
<p>
一张图片本质上是一个链接,所以图片均可以通过超链接的方式[[][]]进行表达,特殊地,如果想像latex那样给出描述和引用标签的话,图的定义就需要添加以下附属信息:
</p>

<div class="org-src-container">
<pre class="src src-org"><span style="color: #969896;">#+CAPTION:</span> <span style="color: #daa520;">This is the caption for the next figure link (or table)</span>
<span style="color: #969896;">#+NAME:   fig:SED-HR4049</span>
<span style="color: #00bfff; text-decoration: underline;"><a href="./img/a.jpg">./img/a.jpg</a></span>
</pre>
</div>

<p>
下面插入一张图片作为示例
</p>


<div id="orgb23521f" class="figure">
<p><img src="./images/20200616184304.png" alt="20200616184304.png" />
</p>
</div>


<div id="orgb812f54" class="figure">
<p><img src="./images/20200616184304.png" alt="20200616184304.png" />
</p>
<p><span class="figure-number">Figure 1: </span>测试图片效果</p>
</div>
</div>
</div>
<div id="outline-container-orgc879588" class="outline-3">
<h3 id="orgc879588"><span class="section-number-3">12.6.</span> creating footnotes 插入脚注</h3>
<div class="outline-text-3" id="text-12-6">
<p>
插入脚注的方法很简单<sup><a id="fnr.1" class="footref" href="#fn.1">1</a></sup>去使用,下面是一个示例:
</p>


<div class="org-src-container">
<pre class="src src-org">The Org homepage<span style="color: #70c0b1;">[fn:1]</span> now looks a lot better than it used to.
...
<span style="color: #70c0b1;">[fn:1]</span> The link is: <span style="color: #00bfff; text-decoration: underline;"><a href="https://orgmode.org">https://orgmode.org</a></span>
</pre>
</div>

<p>
关于脚注的东西,org内置了以下快捷键:
</p>
<ol class="org-ol">
<li>C-c C-x f 插入一条新的脚注,如果存在,那么就进行跳转(从正文跳转到参考处,或者从参考处跳转到正文的脚注位置)</li>
<li>C-c C-c 从脚注的定义处与参考处之间进行跳转</li>
</ol>
</div>
</div>
</div>
<div id="outline-container-orgb91d890" class="outline-2">
<h2 id="orgb91d890"><span class="section-number-2">13.</span> <span class="done DONE">DONE</span> exporting</h2>
<div class="outline-text-2" id="text-13">
<p>
这一章主要讨论如何使用org进行文档的导出.一般,关于文档导出的工作,可以通过C-c C-e进行调用.
</p>
</div>


<div id="outline-container-orgf048f44" class="outline-3">
<h3 id="orgf048f44"><span class="section-number-3">13.1.</span> 导出时需要的一些特殊信息</h3>
<div class="outline-text-3" id="text-13-1">
<p>
比如,可以在文档的所有位置(但是建议于开头处)插入此类:
</p>

<div class="org-src-container">
<pre class="src src-org"><span style="color: #a2cd5a;">#+TITLE:</span> <span style="color: #daa520; font-size: 144%; font-weight: bold;">org&#22522;&#26412;&#31508;&#35760;</span>
</pre>
</div>

<p>
一般可供此类插入的信息主要包括:
</p>
<ul class="org-ul">
<li>TITLE. 文章的名字</li>
<li>AUTHOR. 作者</li>
<li>DATE. 一个日期,或者org的时间戳(timestamp)</li>
<li>EMAIL. email</li>
<li>LANGUAGE. language code,如"en".</li>
</ul>
</div>
</div>

<div id="outline-container-orgd171528" class="outline-3">
<h3 id="orgd171528"><span class="section-number-3">13.2.</span> table of contents 内容目录</h3>
<div class="outline-text-3" id="text-13-2">
<p>
在org中,导出会默认在第一个headline前面插入目录.可以通过下面的一些特殊的命令对目录进行自定义.
</p>

<div class="org-src-container">
<pre class="src src-org"><span style="color: #969896;">#+OPTIONS: toc:2          (only include two levels in TOC)</span>
<span style="color: #969896;">#+OPTIONS: toc:nil        (no default TOC at all)</span>
</pre>
</div>
</div>
</div>

<div id="outline-container-org626630d" class="outline-3">
<h3 id="org626630d"><span class="section-number-3">13.3.</span> include files 导入其他文件</h3>
<div class="outline-text-3" id="text-13-3">
<p>
可以在org文件里插入其他文件,比如,插入一段emacs的配置文件信息,将之作为src并以elisp的语法进行展示.
</p>
<div class="org-src-container">
<pre class="src src-org"><span style="color: #969896;">#+INCLUDE: "~/.emacs" src emacs-lisp</span>
</pre>
</div>
<p>
一般,插入的文件的类型包括example, export, src这三种.
</p>
</div>
</div>

<div id="outline-container-orgc53f81e" class="outline-3">
<h3 id="orgc53f81e"><span class="section-number-3">13.4.</span> comment lines 注释行</h3>
<div class="outline-text-3" id="text-13-4">
<p>
注释符号为＃号.
</p>
</div>
</div>

<div id="outline-container-orga07a503" class="outline-3">
<h3 id="orga07a503"><span class="section-number-3">13.5.</span> 正文开始:导出成不同格式的文件</h3>
<div class="outline-text-3" id="text-13-5">
</div>
<div id="outline-container-orgeaf9a44" class="outline-4">
<h4 id="orgeaf9a44"><span class="section-number-4">13.5.1.</span> ASCII UTF-8</h4>
<div class="outline-text-4" id="text-13-5-1">
<p>
导出为txt文件.使用C-c C-e t a(scii) 或C-c C-e t u(tf-8) 
</p>
</div>
</div>

<div id="outline-container-org684ff68" class="outline-4">
<h4 id="org684ff68"><span class="section-number-4">13.5.2.</span> HTML</h4>
<div class="outline-text-4" id="text-13-5-2">
<p>
使用C-c C-e h h生成一个html文件,使用C-c C-e h o 生成并在浏览器里打开这样一个文件.
</p>

<p>
此处值得注意的是,org在进行文本转化时,将"&lt;"与"&gt;"表达为"&amp;lt"与"&amp;gt".因此,如果要在org中插入一段原生的HTML代码,应当使用"此处写html自带的标记语法",比如下面的例子:
</p>

<div class="org-src-container">
<pre class="src src-org">@@html:&lt;b&gt;@@bold text@@html:&lt;/b&gt;@@
</pre>
</div>
<p>
对于大范围的HTML代码块,可以通过下面的方法进行代码块的导出
</p>

<div class="org-src-container">
<pre class="src src-org"><span style="color: #969896;">#+HTML: Literal HTML code for export</span>

<span style="color: #969896;">#+BEGIN_EXPORT html</span>
<span style="color: #daa520;">  All lines between these markers are exported literally</span>
<span style="color: #969896;">#+END_EXPORT</span>
</pre>
</div>
</div>
</div>

<div id="outline-container-orgf643ed7" class="outline-4">
<h4 id="orgf643ed7"><span class="section-number-4">13.5.3.</span> latex export</h4>
<div class="outline-text-4" id="text-13-5-3">
<p>
有关latex文本的导出,是一个很重要的地方.其重要之处在于,latex的语法比org复杂更多,因此,在这种转变的过程中,难免存在大量的部分是默认的.
下面将一一介绍如何把一个org文件转化为一个可编译的latex.
</p>
</div>
<ol class="org-ol">
<li><a id="orgb4c3173"></a>设置document的class<br />
<div class="outline-text-5" id="text-13-5-3-1">
<p>
org默认其为article类型,但是,当然,也可以自己定义所使用的latex的类,使用如下命令:
</p>
<div class="org-src-container">
<pre class="src src-org"><span style="color: #969896;">#+LATEX_CLASS: myclass</span>
</pre>
</div>
<p>
当然,这样导入要求myclass必须在列表org-latex-classes里面.
</p>
</div>
</li>

<li><a id="orgf4534e9"></a>基本的导出命令.<br />
<div class="outline-text-5" id="text-13-5-3-2">
<ol class="org-ol">
<li>C-c C-e l l 导出一个latex文件</li>
<li>C-c C-e l p 导出一个latex文件并将之转换为PDF.</li>
<li>C-c C-e l o 导出一个latex文件并将之转换为PDF,之后打开</li>
</ol>
<p>
当然,需要强调的一个问题是,*上述方法均无法很好地处理latex中存在中文的问题(因为编译本质上用的是pdflatex而非xelatex)*
</p>
</div>
</li>
<li><a id="orgad8528f"></a>在org中插入latex代码块<br />
<div class="outline-text-5" id="text-13-5-3-3">
<p>
一般,org允许在文档中插入任意的latex代码块,其基本思路与HTML的插入类似,规则为:
</p>
<ul class="org-ul">
<li>行内插入.使用""进行插入.</li>
<li><p>
单行插入.使用如下命令:
</p>
<div class="org-src-container">
<pre class="src src-org"><span style="color: #969896;">#+LATEX: any arbitrary LaTeX code</span>
</pre>
</div></li>
<li><p>
多行插入.使用:
</p>
<div class="org-src-container">
<pre class="src src-org"><span style="color: #969896;">#+BEGIN_EXPORT latex</span>
<span style="color: #daa520;">  any arbitrary LaTeX code</span>
<span style="color: #969896;">#+END_EXPORT</span>
</pre>
</div></li>
</ul>
</div>
</li>
</ol>
</div>
<div id="outline-container-org932eb86" class="outline-4">
<h4 id="org932eb86"><span class="section-number-4">13.5.4.</span> iCalendar export</h4>
<div class="outline-text-4" id="text-13-5-4">
<p>
关于这个东西,大多数人看见了或许会觉得奇怪,因为这个东西并不是十分地让人觉得熟悉.
作者查阅了一下,这个东西是一种通用的电子日历类型.下面就对其进行简单介绍.
</p>
<ol class="org-ol">
<li>C-c C-e c f. 从当前org缓冲区(为什么是缓冲区?)创建一个iCalendar条目并将其存储在相同文件夹下,使用后缀.ics</li>
<li>C-c C-e c c.Create a combined iCalendar file from Org files in org-agenda-files and write it to org-icalendar-combined-agenda-file file name.</li>
</ol>
</div>
</div>
</div>
</div>
<div id="outline-container-orgd212bde" class="outline-2">
<h2 id="orgd212bde"><span class="section-number-2">14.</span> <span class="done DONE">DONE</span> publishing</h2>
<div class="outline-text-2" id="text-14">
<p>
publishing是一种手段,将笔记转换为html等格式之后上传到博客上.
当进行发布时,需要进行一些自定义的配置,如
</p>

<div class="org-src-container">
<pre class="src src-emacs-lisp">(<span style="color: #00bfff;">setq</span> org-publish-project-alist
  '((<span style="color: #deb887;">"org"</span>
     <span style="color: #f08080;">:base-directory</span> <span style="color: #deb887;">"~/org/"</span> <span style="color: #969896;">;; </span><span style="color: #969896;">&#22522;&#30784;&#30340;&#30446;&#24405; </span>
     <span style="color: #f08080;">:publishing-directory</span> <span style="color: #deb887;">"~/public_html"</span> <span style="color: #969896;">;; </span><span style="color: #969896;">&#21457;&#24067;&#25991;&#20214;&#30340;&#30446;&#24405;</span>
     <span style="color: #f08080;">:section-numbers</span> nil
     <span style="color: #f08080;">:table-of-contents</span> nil
     <span style="color: #f08080;">:style</span> <span style="color: #deb887;">"&lt;link rel=\"stylesheet\"</span>
<span style="color: #deb887;">        href=\"../other/mystyle.css\"</span>
<span style="color: #deb887;">        type=\"text/css\"/&gt;"</span>)))
</pre>
</div>
<p>
这个东西我还没有配置!
</p>
<ol class="org-ol">
<li>C-c C-e P x 为一个特殊的项目提示,并发布其所有文件.</li>
<li>C-c C-e P p 发布包括当前文件的项目.</li>
<li>C-c C-e P f 只发布当前文件.</li>
<li>C-c C-e P a 发布所有的项目</li>
</ol>
</div>
</div>

<div id="outline-container-org9c0ddfa" class="outline-2">
<h2 id="org9c0ddfa"><span class="section-number-2">15.</span> <span class="todo TODO">TODO</span> miscellaneous</h2>
</div>
<div id="footnotes">
<h2 class="footnotes">Footnotes: </h2>
<div id="text-footnotes">

<div class="footdef"><sup><a id="fn.1" class="footnum" href="#fnr.1">1</a></sup> <div class="footpara"><p class="footpara">
这就是一个脚注
</p></div></div>


</div>
</div>
</div>
</div>
    <div>
      <div class="post-meta">
        <span title="post date" class="post-info">2021-09-10</span>
        <span title="last modification date" class="post-info">2021-09-10</span>
        <span title="tags" class="post-info"><a href="/tags/@work-@home-@tennisclub/">@work @home @tennisclub</a></span>
        <span title="author" class="post-info">梁子</span>
      </div>
      <section>
        <h1>Comments</h1>
        <div id="disqus_thread"></div>
        <script type="text/javascript">
          //var disqus_developer = 1;
          var disqus_identifier = "/blog/2021/09/10/org-mode/";
          var disqus_url = "https://18842378119.gitee.io/imissliangzi.gitee.io/blog/2021/09/10/org-mode/";
          var disqus_shortname = 'my_disqus_shortname';
          /* * * DON'T EDIT BELOW THIS LINE * * */
          (function() {
          var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
          dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
          (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
          })();
        </script>
        <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
        <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
      </section>
      <script type="text/javascript">
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'your google analytics id']);
        _gaq.push(['_trackPageview']);
        (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();
      </script>
      <div class="footer">
        <p>Generated by <a href="https://www.gnu.org/software/emacs/">Emacs</a> 27.1 (<a href="https://orgmode.org">Org</a> mode 9.4.6)</p>
        <p>
          Copyright &copy; 2012 - 2013 <a href="mailto:2273067585 &lt;at&gt; qq &lt;dot&gt; com">梁子</a>
          &nbsp;&nbsp;-&nbsp;&nbsp;
          Powered by <a href="https://github.com/kelvinh/org-page" target="_blank">org-page</a>
        </p>
      </div>
    </div>
  </body>
</html>
